package com.apes.report.config;


import com.bstek.ureport.console.UReportServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * @program: report
 * @description:
 * @author: Chengxm
 * @create: 2019-06-04 09:13
 **/
@Configuration
@ImportResource("classpath:ureport-context.xml")
public class UReport2Config {
    @Bean
    public ServletRegistrationBean buildUReportServlet() {
        return new ServletRegistrationBean(new UReportServlet(), "/ureport/*");
    }
}
